%QT_BIN%\qmake.exe -project
echo UI_DIR = uiTestSrc/ui >> uiTest.pro    
echo INCLUDEPATH += . ../tools >> uiTest.pro    
echo QT += widgets >> uiTest.pro    
echo CONFIG += qt >> uiTest.pro
     
%QT_BIN%\qmake.exe .\uiTest.pro ^
 -r ^
 -spec win32-g++ ^
 "LIBS += -L../result/debug" ^
 "LIBS += -ltools" ^
 "DESTDIR = ../result/debug/" ^
 "CONFIG+=debug c++11" ^
 "QMAKE_CXXFLAGS += -std=c++1y -pedantic-errors -Wall -Wextra -Wfatal-errors -Wwrite-strings -m32 -O0"
 
%QT_GCC%\mingw32-make.exe %1